<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 作业1：[1, 5, 8,88,100,23] [2,124,66,77,88,999] 通过函数封装 求两个数组的最大值（使用展开运算符）

      let arr1 = [1, 5, 8, 88, 100, 23]
      let arr2 = [2, 124, 66, 77, 88, 999]

      // let [...a] = arr1
      // let [...b] = arr2
      // console.log(a, b)
      function num(){
        console.log(Math.max(...arr1));
        console.log(Math.max(...arr2));
      }
      num()
    </script>
  </body>
</html>
